<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>签到列表展示</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>
<body>
<button class="layui-btn layui-btn-primary layui-border-orange"><a href="{:url('create')}">新增内容</a> </button>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>编号</th>
            <th>第几天</th>
            <th>获取积分</th>
            <th>是否可用</th>
            <th>排序</th>
            <th>签到图像</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $data as $v}
        <tr>
            <td>{$v->id}</td>
            <td>{$v->s_day}</td>
            <td>{$v->s_integral}</td>
            <td>


                <div class="layui-form-item">
                    <div class="layui-input-block">
                        {if $v->s_status ==1}
                        <input type="checkbox" class="upda" checked="" lay-skin="switch" lay-filter="switchTest" lay-text="显示|隐藏">
                        {else}
                        <input type="checkbox" class="upda"  lay-skin="switch" lay-filter="switchTest" lay-text="显示|隐藏">
                        {/if}

                    </div>
                </div>

            </td>
            <td>{$v->s_sotre}</td>
            <td><img src="{$v->images}"/></td>
            <td>
                <a href="{:url('update')}?id={$v->id}">修改</a>
                <a href="{:url('delete')}?id={$v->id}">删除</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</div>
</body>
</html>
<!-- 引入 layui.js -->
<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>